﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace Fcdbas.Core.WCF.TransFile.Contracts.Enums
{
    /// <summary>
    /// 上传进度
    /// </summary>
    [DataContract]
    public enum LoadProgress
    {

        /// <summary>
        /// 开始
        /// </summary>
        [Description("开始传输")]
        [EnumMember]
        Begin = 0,
        /// <summary>
        /// 进行中
        /// </summary>
        [Description("传输中")]
        [EnumMember]
        Loading = 1,
        /// <summary>
        /// 关闭
        /// </summary>
        [Description("停止传输")]
        [EnumMember]
        End = 2,
        /// <summary>
        /// 验证服务器文件
        /// </summary>
        [Description("验证服务器文件")]
        [EnumMember]
        CheckeFile = 3,
        /// <summary>
        /// 获取续传断点
        /// </summary>
        [Description("获取续传断点")]
        [EnumMember]
        GetOffSet = 4,
        /// <summary>
        /// 删除备份
        /// </summary>
        [Description("删除备份")]
        [EnumMember]
        DeleteBackup = 5,
        /// <summary>
        /// 备份删除成功
        /// </summary>
        [Description("删除成功")]
        [EnumMember]
        DeleteSuccess = 6,
        /// <summary>
        /// 备份删除失败
        /// </summary>
        [Description("删除失败")]
        [EnumMember]
        DeleteFail = 7,
        /// <summary>
        /// 删除文件
        /// </summary>
        [Description("删除文件")]
        [EnumMember]
        DeleteFile = 8,
        /// <summary>
        /// 读取本地文件
        /// </summary>
        [Description("读取本地文件")]
        [EnumMember]
        ReadLocalFile = 9,
        /// <summary>
        /// 读取本地文件成功
        /// </summary>
        [Description("读取文件成功")]
        [EnumMember]
        ReadLocalSuccess = 10,
        /// <summary>
        /// 读取本地文件失败
        /// </summary>
        [Description("读取文件失败")]
        [EnumMember]
        ReadLocalFail = 11,
        /// <summary>
        /// 完成
        /// </summary>
        [Description("传输完成")]
        [EnumMember]
        Complete = 99,

        /// <summary>
        /// 错误
        /// </summary>
        [Description("传输失败")]
        [EnumMember]
        Error = -1
    }
}
